package com.example.kehoobackend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "user",autoResultMap = true)
public class User {

    //用户ID
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer id;

    //邮箱
    private String email;

    //密码
    private String password;

    //创建时间
    private String join_time;

    //用户名
    private String username;

    //性别（0为男，1为女）
    private Integer gender;

    //简介
    private String simple_desc;

    //地址
    private String position;

    //职业
    private String industry;

    //生涯
    private String career;

    //教育程度
    private String education;

    //详细介绍
    private String full_desc;

    //总获赞数
    private Integer liked_count;

    //关注数
    @TableField(exist = false)
    private Integer follow_count;

    //粉丝数
    @TableField(exist = false)
    private Integer followed_count;

    //是否关注
    @TableField(exist = false)
    private boolean isFollowed;

    //用于加密密码的盐值
    private String salt;


}
